#include "global.h"
#include "hBitStr.h"

using namespace std;

int main()
{
	hBitStr str;
	for (uint8_t i = 0; i < 20; ++i)
		str << i;
	cout << str << endl;

	bitset<3> s;
	while (str)
	{
		str >> s;
		cout << s << "{" << str << "}" << endl;
	}

	return 0;
}